package com.xuecheng.base.exception;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author luhao
 * @ClassName RestErrorResponse.java
 * @Description 公共返回错误信息
 * @createTime 2023/5/18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RestErrorResponse implements Serializable {
    private String errMessage;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String errCode;
    public RestErrorResponse(String errMessage){
        this.errMessage = errMessage;
    }

}
